package com.homedo.odin.solution.model.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 基础类型数据表
 * </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@TableName("common_type_data")
@Getter
@Setter
public class CommonTypeData extends Model<CommonTypeData> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 名称
     */
	private String name;
    /**
     * 父id
     */
	@TableField("parent_id")
	private Integer parentId;
    /**
     * 父子路径
     */
	private String path;
    /**
     * 层级
     */
	private Integer depth;
    /**
     * 状态 0:正常 1:已删除
     */
	private Integer status;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 创建日期
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 最后修改日期
     */
	@TableField("last_modified_time")
	private Date lastModifiedTime;

	@TableField("highlight")
	private Integer highlight;

	@TableField("modified_by")
	private Long modifiedBy;

	@TableField("operator")
	private String operator;

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
